Verify a Decimal MAC

Command:

To verify a decimal MAC of user defined length

Notes:

This command assumes that the data on which the MAC is to be generated consists of characters only

The cipher scheme used deepends upon the key length.

Single length WWK –   Cipher scheme code 0

Double length WWK –            Cipher scheme code 1 (X9.19 MAC)

 

Field

Length & Type

Details

COMMAND MESSAGE

Message Header

m A

(Subsequently returned to the Host unchanged).

Command Code

2 A

Value LM.

TAK

16 H or 1A+32H

The TAK encrypted under LMK pair 16-17.

MAC length

1 H

The number of characters in the Decimal MAC (range 1 - 12).

MAC

n N

The MAC to be verified.

Data

0 - n

The data on which the MAC to be verified was calculated, n= 1024 (512 for SNA-SDLC systems).

End Message Delimiter

1 C

Optional. Must be present if a message trailer is present. Value X'19.

Message Trailer

n A

Optional. Maximum length 32 characters.

RESPONSE MESSAGE

Message Header

m A

Returned to the Host unchanged

Response code

2 A

Value LN


Error Code

2 N

00 : No errors
01 : MAC did not verify

27 : Invalid key length
10 : TAK parity error
12 : No keys loaded in user storage
13 : LMK error; report to supervisor
15 : Error in input data
21 : Invalid user storage index

End Message Delimiter

1 C

Will only be present if present in the command message. Value X'19.

Message Trailer

n A

Only present if in the command message. Maximum length 32 characters.